package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class JuiceMakerTest {
    public static void main(String[] args) {
        JuiceMaker juiceMaker = new JuiceMaker();
        juiceMaker.brand = "美的";
        juiceMaker.price = 265;
        juiceMaker.color = "珍珠白";
        juiceMaker.watt = 65;
        //juiceMaker.fruit = "葡萄";
        juiceMaker.selfShow();
        juiceMaker.start();
        String fruit = "葡萄";
        String result = juiceMaker.makeJuice(fruit);
        System.out.println("老刘喝到了" + result);
        //juiceMaker.fruit = "梨子";
        fruit = "芒果";
        result = juiceMaker.makeJuice(fruit);
        System.out.println("老刘喝到了" + result);

        result = juiceMaker.makeJuice("桔子");
        System.out.println("老刘喝到了" + result);
        System.out.println("----------------------------");
        String f1 = "西瓜", f2 = "柠檬";
        String ju = juiceMaker.makeJuice2(f1, f2);
        System.out.println("老刘喝到了" + ju);

        juiceMaker.makeJuice2("香蕉", "菠萝");
        
    }
}
